import { GET_USER_INFO, REMOVE_USER } from "../constants"

const initValues = {}

export default function user(prevState = initValues, action) {
  switch (action.type) {
    case GET_USER_INFO:
      return action.payload
    case REMOVE_USER:
      return {}
    default:
      return prevState
  }
}